<template>
  <div >
    <el-button-group  style="float: right;margin-top:-28px;">
      <el-button size="mini" :icon="editIcon" @click="edit">{{editTips}}</el-button>
      <el-button size="mini" icon="el-icon-arrow-up" @click="moveUp">上移</el-button>
      <el-button size="mini" icon="el-icon-top" @click="moveUpUp">最前</el-button>
      <el-button size="mini" icon="el-icon-arrow-down" @click="moveDown">下移</el-button>
      <el-button size="mini" icon="el-icon-bottom" @click="moveDownDown">最后</el-button>
      <el-button size="mini" icon="el-icon-copy-document" @click="Copy">复制</el-button>
      <el-button size="mini" type="danger" icon="el-icon-delete" @click="Del">删除</el-button>
    </el-button-group>
  </div>
</template>
<script>
export default {
  name:'BtnGroupOnQuestion',
  props:{
    editIcon:String,
    editTips:String,
  },
  methods:{
    edit(){
      this.$emit('editMe');
    },
    moveUp(){
      this.$emit('moveUp');
    },
    moveUpUp(){
      this.$emit('moveUpUp');
    },
    moveDown(){
      this.$emit('moveDown');
    },
    moveDownDown(){
      this.$emit('moveDownDown');
    },
    Copy(){
      this.$emit('copyMe');
    },
    Del(){
      this.$emit('deleteMe');
    }
  }
}
</script>